package com.xltq.service;

import com.xltq.entity.Address;

import java.util.List;

//地址的业务逻辑
public interface IAddressService {
    //查询所有用户地址
    List<Address>  findAddressByUid(int uid)throws Exception;
    //添加用户地址
    void saveAddress(Address address)throws Exception;
    //删除用户地址
    void deleteAddressByAid(String aid) throws Exception;
    //地址信息全修改
    void setAddress(Address address) throws Exception;
    //修改地址状态(默认|普通)
    void setaddressToDefault(String aid, int uid) throws  Exception;
}
